package comone.comfive;

import java.util.Scanner;

public class User {

    public void test() throws  Exception{
        Scanner in = new Scanner(System.in);
        System.out.print("请输入被除数:");
        int num1 = in.nextInt();
        System.out.print("请输入除数:");
        if(num1<=0){
            throw new KH62Exception("除数不能为0");
        }
        int num2 = in.nextInt();
        System.out.println(num1+"/"+ num2 +"="+ num1/ num2);
    }
}
